package org.akomantoso.core.data;

import java.io.IOException;

import org.akomantoso.core.data.group.InlineCM;
import org.akomantoso.core.io.Input;
import org.akomantoso.core.io.util.group.InlineCMGroup;

/**
 * the complex type inlinereq defines the content model and attributes shared by all blocks and inlines. Here the id
 * attribute is required and also the refersTo is required
 * 
 * <pre>
 * <xsd:complexType name="inlinereqreq" mixed="true">
 * 		<xsd:choice minOccurs="0" maxOccurs="unbounded">
 * 			<xsd:group ref="inlineCM" />
 * 		</xsd:choice>
 * 		<xsd:attributeGroup ref="corereqreq" />
 * 	</xsd:complexType>
 * </pre>
 * 
 * @author <a href="mailto:jacques.militello@gmail.com">Jacques Militello</a>
 * 
 * @since http://www.akomantoso.org/1.0
 */
public abstract class InlineReqReqType extends MixedContentWithCoreReqReq<InlineCM> implements MixedItem {

	/**
	 * @see org.akomantoso.core.data.MixedContent#readExternal(org.akomantoso.core.io.Input)
	 */
	@Override
	public <E extends Input> void readExternal(E in) throws IOException {
		super.readExternal(in);
		InlineCMGroup.read(in,getData());
	}
	
}